using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class AmmoGrenade {
	[RuntimeInitializeOnLoadMethod]
	static void SubscribeEvents() {
		Weapon.ProjectileDeciding+=Weapon_ProjectileDeciding;
	}

	private static void Weapon_ProjectileDeciding(object sender,ShootEventArgs e) {
		if(e.stat.consumedAmmos==null) return;
		if(!e.stat.consumedAmmos.ContainsKey(id)) return;
		int consumed = e.stat.consumedAmmos[id];
		e.stat.currentProjectile=ProjectileData.nameToData["Grenade"];
	}

	const int id = 3;


}